﻿<!DOCTYPE html>
<html>
<head>
    <title>NService Monitor</title>
</head>
<body>
    <h1>
        Hello world</h1>
    <p>
        已加载的服务数量：@NService.Common.ServiceManager.Instance.Services.Count
    </p>
    <p>
        是否透明代理：@System.Runtime.Remoting.RemotingServices.IsTransparentProxy(NService.Common.ServiceManager.Instance)
    </p>
    @{
        try
        {
            NService.Common.ServiceManager.Instance.AddService(new NService.Common.ServiceMeta(){Name="test", TypeName = "test,test"});
        }
        catch (Exception e)
        {
            @e.Message;
        }
    }
    <p>
        已加载的服务数量：@NService.Common.ServiceManager.Instance.Services.Count
    </p>
</body>
</html>
